const jwt = require('koa-jwt')
const { tokenConfig } = require('../config/index')

const secret = tokenConfig.secret
const auth = jwt({ secret })

module.exports = auth